
import "babel-polyfill";
// import  "core-js/es";
// import  "mutation-observer";
// import  "react-app-polyfill/ie9";
// import  "react-app-polyfill/stable";
import dva from 'dva';
import './utils/flexible';
// import setprototypeof from  'setprototypeof';
 
// Object.setPrototypeOf = setprototypeof;
// 1. Initialize
const app = dva();

// 2. Plugins
// app.use({});

// 3. Model
app.model(require('./models/leftPage').default);
app.model(require('./models/centerPage').default);
app.model(require('./models/rightPage').default);

// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root'); 